package com.socialcoco.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.socialcoco.entity.Comment;
import com.socialcoco.entity.DiaryRespone;
import com.socialcoco.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.cache.annotation.Cacheable;

import java.util.List;

/**
 * 封装的一个diary和img1的一个结果集
 */
@Mapper
public interface DiaryResMapper extends BaseMapper<DiaryRespone> {
    public List<DiaryRespone> listDiary();
    public List<DiaryRespone> listMyDiary(int uid);
    public List<Comment> listComment(int did);
    public List<User> listFriend(int uid);
    public List<DiaryRespone> rankList();
    public int like(int uid);
}
